import { FormSchema } from '/@/components/Form';

export const schemas2: FormSchema[] = [
  {
    field: 'societyName',
    component: 'Input',
    label: '社团名称',
    componentProps: {
      placeholder: '给目标起个名字',
    },
  },
  {
    field: 'SocietyCategory',
    component: 'Input',
    label: '社团类别',
  },
  {
    field: 'time',
    component: 'DatePicker',
    label: '日期',
  },
  {
    field: 'Instructors',
    component: 'InputTextArea',
    label: '指导教师',
    componentProps: {
      placeholder: '指导教师',
      rows: 4,
    },
  },
  {
    field: 'MentoringUnits',
    component: 'InputTextArea',
    label: '指导单位',
    componentProps: {
      placeholder: '指导单位',
      rows: 4,
    },
  },

  {
    field: 'ClubActivities',
    component: 'InputTextArea',
    label: '社团活动',
    componentProps: {
      placeholder: '社团活动',
      rows: 1,
    },
  },
  {
    field: 'InstructorGuidance',
    component: 'InputTextArea',
    label: '指导教师指导情况',
    componentProps: {
      placeholder: '指导教师指导情况',
      rows: 4,
    },
  },
  {
    field: 'MentoringTime',
    component: 'DatePicker',
    label: '指导时间',
  },
  {
    field: 'NumberOfCoaches',
    component: 'InputNumber',
    label: '指导次数',
    subLabel: '( 选填 )',
    componentProps: {
      formatter: (value: string) => (value ? `${value}次` : ''),
      parser: (value: string) => value.replace('次', ''),
      placeholder: '请输入',
    },
  },
  {
    field: 'GuidingContent',
    component: 'InputTextArea',
    label: '指导内容',
    slot: 'fac',
  },
];
